package com.xinchengxd.commons.entity.goods;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * @author: 姚新成
 * @Date: 2021/11/9:0:02
 * @Description:
 */

@Data
@NoArgsConstructor
@RequiredArgsConstructor
public class Goods implements Serializable {
    @NonNull
    private Integer id;
    private String name;
    private Category category;
    private String image;
    private BigDecimal price;
    private Integer stock;
    private String description;
    private BigDecimal score;
    private String newest;
    private String hotest;
    private String status;


    public Goods(String name, BigDecimal price) {
        this.name = name;
        this.price = price;
    }
}
